#include <cstdio>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <cmath>
using namespace std;
string s;
int main(void){
    int n;
    while(~scanf("%d",&n)){
        int pre=1;
        int t;
        for(int i=0;i<n;i++){
            scanf("%d",&t);
            pre=pre/__gcd(pre,t)*t;
        }
        printf("%d\n",pre);
    }
    return 0;
}
